package com.blog.mapper;

import com.blog.pojo.Article;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

@Mapper
public interface ArticleMapper {
    void addArticle(Article article);
    List<Article> list();
    Article detail(int id);
    List<Article> findAll();
    void edit(Article article);
    void delete(int id);
}
